package cn.it.shop.service.listener;

import javax.servlet.http.HttpSessionEvent;
import javax.servlet.http.HttpSessionListener;

import cn.it.shop.pojo.Forder;

public class ForderListener implements HttpSessionListener {

	@Override// 在客户第一次访问商城 创建空白的购物车
	public void sessionCreated(HttpSessionEvent event) {
		System.out.println("---------sessionCreated--------");
		event.getSession().setAttribute("forder", new Forder());
	}

	@Override	//获取最后登陆时间
	public void sessionDestroyed(HttpSessionEvent event) {

	}
}
